package com.pattern.factory.abstractfactory2.magic;

import com.pattern.factory.abstractfactory2.*;
import com.pattern.factory.abstractfactory2.Vehicle;

/**
 * <p>
 *
 * </p>
 *
 * @author qingshan
 * @since 2020-07-19 21:42
 */
public class MagicFactory extends AbstractFactory {

    public Food createFood() {
        return new MushRoom();
    }

    public Vehicle createVehicle() {
        return new Broom();
    }

    public Weapon createWeapon() {
        return new MagicStick();
    }
}
